import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'

import user from './modules/user'
import plus from './modules/plus'
// import list from './modules/entitylist'
// import relatedTable from './modules/relatedTable'
// import buttonInfo from './modules/buttonStatus'
// import filters from './modules/list-filter'

Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'production-runtime'

const store = new Vuex.Store({
  modules: {
    user,
    plus
    // filters,
    // list,
    // relatedTable,
    // buttonInfo
  },
  strict: debug,
  plugins: debug ? [createLogger()] : []
})

export default store
